const { ObjectId } = require('bson')
const mongoose = require('mongoose')
const { Schema } = mongoose

// 文章举报信息表
const tipOffData = new Schema({
  tipOffId: {
    type: String,
    required: true
  },
  blogId: {
    type: Number,
    required: true
  },
  author_id: {
    type: ObjectId,
    required: true
  },
  description: {
    type: String
  },
  cover: {
    type: String
  },
  title: {
    type: String,
    required: true
  },
  reason: {
    type: String,
    required: true
  }
})

const tipOffTable = mongoose.model('tipOffTable', tipOffData)

module.exports = tipOffTable